<%@ page language="java"
	import="java.util.*,java.lang.*,com.firesrc.bean.SendRecord"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>今天邮箱列表</title>
</head>
<body>
	<h2>今天已发送邮件列表</h2>
	<%
		List<SendRecord> list = (List) request.getAttribute("list");
	%>
	今天已经发送的邮箱为 <font color="blue" size="5"> <%=list.size() %></font>封
	<form action="" >
		<input type="hidden" name="type" value="add">
		<table border="1">
			<tbody align="left">
				<tr>
					<td>用户名</td>
					<td>发送类型</td>
					<td>发送邮箱</td>
					<td>接受邮箱</td>
					<td>发送日期</td>
					<td>发送时间</td>
					<td>状态</td>
					<td>错误信息</td>
				</tr>
				<%
					for (SendRecord sendRecord : list) {
				%>
				<tr>
					<td><%=sendRecord.getUserName()%></td>
					<td><%=sendRecord.getKind()%></td>
					<td><%=sendRecord.getFromMail()%></td>
					<td><%=sendRecord.getToMail()%></td>
					<td><%=sendRecord.getSendDate()%></td>
					<td><%=sendRecord.getSendTime()%></td>
					<td><%=sendRecord.getState()%></td>
					<td><%=sendRecord.getErrorInfo()%></td>
					<td><a  href="/SendRecordServlet?type=del&id=<%=sendRecord.getId()  %>">删除</a></td>
				</tr>
				<%
					}
				%>
			</tbody>
		</table>
	</form>
</body>
</html>